package xin.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import xin.entity.CommonResult;
import xin.service.TOrgEmployeeService;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author young
 * @since 2023年10月09日
 */
@RestController
@RequestMapping("/employ")
@Api(value = "测试api",description = "这是我的测试")
public class TAuthEmployeeRoleController {
    @Resource
    private TOrgEmployeeService employeeService;
    @GetMapping("/findByNameLike")
    public CommonResult<?> findByNameLike(String keyWorld){
        return CommonResult.success(this.employeeService.findByNameLike(keyWorld),"请求成功");
    }
}

